<template>
  <div>
    <!-- 路线提示 -->
    <div class="pathInfo" v-if="isShowPathInfo" :style="changePathInfoBottom">
      <span class="path_title">点击左侧按钮查看该楼层路线</span>
      <span class="path_pic"></span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    isShowPathInfo: Boolean
  },
  data() {
    return {
      screenWidth: window.screen.width,
      screenHeight: window.screen.height
    };
  },
  computed: {
    changePathInfoBottom() {
      if (this.$store.state.isBigScreen) {
        return {
          bottom: "245px"
        };
      } else {
        if (this.screenWidth == 414 && this.screenHeight == 736) {
          return {
            bottom: "208px"
          };
        } else {
          return {
            bottom: "204px"
          };
        }
      }
    }
  },
  created() {},
  mounted() {},
  watch: {},
  methods: {},
  components: {}
};
</script>

<style lang='less'>
/* 路线提示 */
.pathInfo {
  position: absolute;
  width: 200px;
  height: 40px;
  left: 65px;
  z-index: 999;
  background-color: rgba(69, 68, 67, 0.8);
  border-radius: 3px;
  transition: all 0.5s;
  .path_title {
    position: absolute;
    width: 150px;
    height: 40px;
    line-height: 40px;
    font-size: 10px;
    right: 2.5px;
    color: #fff;
  }
  .path_pic {
    position: absolute;
    width: 30px;
    height: 40px;
    left: 7.5px;
    background: url("../assets/images/toLeft.png") no-repeat center;
    background-size: 60%;
    animation: arrowLeftmove 2s infinite;
    -moz-animation: arrowLeftmove 2s infinite;
    -webkit-animation: arrowLeftmove 2s infinite;
    -o-animation: arrowLeftmove 2s infinite;
  }
}
@keyframes arrowLeftmove {
  0% {
    left: 12px;
  }

  50% {
    left: 3px;
  }

  100% {
    left: 12px;
  }
}

@-moz-keyframes arrowLeftmove {
  0% {
    left: 12px;
  }

  50% {
    left: 3px;
  }

  100% {
    left: 12px;
  }
}

@-webkit-keyframes arrowLeftmove {
  0% {
    left: 12px;
  }

  50% {
    left: 3px;
  }

  100% {
    left: 12px;
  }
}

@-o-keyframes arrowLeftmove {
  0% {
    left: 12px;
  }

  50% {
    left: 3px;
  }

  100% {
    left: 12px;
  }
}
</style>
